package com.bms.cfcmms.model.system;

import com.bms.cfcmms.util.annotation.FieldDefine;
import com.bms.cfcmms.util.annotation.TableDefine;
import com.bms.cfcmms.model.BaseModel;
import lombok.Data;

import java.sql.Timestamp;

import javax.persistence.Column;

/**
 * Created by carl on 2016/4/20.
 */
@Data
@TableDefine(group = "系统维护", primaryKey = "Id", id = 9907, title = "升级包管理")
public class UpdatePack extends BaseModel {

    public static final String TABLE_NAME = "UpdatePack";

    @FieldDefine(title = "序号", number = 10)
    @Column(length = 4, nullable = false)
    private Integer Id;

    @FieldDefine(title = "名称", nameField = true, number = 20)
    @Column(length = 255, nullable = false)
    private String Name;

    @FieldDefine(title = "版本", nameField = true, number = 30)
    @Column(length = 20, nullable = false)
    private String Version;

    @FieldDefine(title = "上传时间", nameField = true, number = 40)
    @Column(nullable = false)
    private Timestamp UploadTime;

    @FieldDefine(title = "包大小", number = 50)
    @Column(length = 11, nullable = false)
    private Long PackageSize;

    @FieldDefine(title = "MD5校验", nameField = true, number = 60)
    @Column(length = 255, nullable = true)
    private String MD5;

    @FieldDefine(title = "是否已升级", nameField = true, number = 70)
    @Column(nullable = false)
    private Boolean isUpdate;

    @FieldDefine(title = "描述", nameField = true, number = 80)
    @Column(length = 255, nullable = true)
    private String Description;

}
